Improve the performance of the Xend trace facility, and exclude XendMonitor
authorEwan Mellor <ewan@xensource.com>
Wed, 14 Mar 2007 23:13:37 +0000 (23:13 +0000)
committerEwan Mellor <ewan@xensource.com>
Wed, 14 Mar 2007 23:13:37 +0000 (23:13 +0000)
and XendLogging from those classes that are traced.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/server/SrvDaemon.py

index 04f7a789a6e75d54c0511b35395d9af39bd50675..adb83b679c1436b08b8ed41b0e37c9e4929c50a4 100644 (file)
@@ -276,9 +276,12 @@ class Daemon:
             if not m:
                 return None
             modulename = m.group(1)
-            if re.search('sxp.py', modulename):
-                return None
-            if re.search('SrvServer.py', modulename):
+            if modulename.endswith('.pyc'):
+                modulename = modulename[:-1]
+            if modulename == 'sxp.py' or \
+               modulename == 'XendLogging.py' or \
+               modulename == 'XendMonitor.py' or \
+               modulename == 'server/SrvServer.py':
                 return None
             self.traceindent += 1
             self.print_trace("> %s:%s\n"